package cn.tedu.sp09.feign;


import cn.tedu.sp01.pojo.Item;
import cn.tedu.web.util.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@Component
public class ItemClientFB implements ItemClient{

    @Override
   public JsonResult<List<Item>> getItems(@PathVariable String orderId) {
    return JsonResult.err().msg("获取商品列表失败");
    }
    @Override
    public JsonResult<?> decreaseNumber(@RequestBody List<Item> items) {
        return JsonResult.err().msg("获取商品列表失败");
    }

}
